﻿// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) 2007 Microsoft Corporation. All rights reserved.

using Microsoft.Office.Interop.Word;

namespace TShooter.TfsWord.AddIn.UIManager.Word
{
    /// <summary>
    /// Word UI container.
    /// </summary>
    public sealed class UIContainer : UIContainerBase<Window>
    {
        #region Fields

        private readonly UIManager uiManager;

        #endregion

        #region .ctor

        internal UIContainer(Window window, UIManager uiManager)
            : base(window, uiManager.CustomTaskPanes)
        {
            this.uiManager = uiManager;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets a reference to the <see cref="UIManager"/> holding this container.
        /// </summary>
        public UIManager UIManager
        {
            get { return uiManager; }
        }

        #endregion
    }
}